home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_05 / plauger / setf.c < prev    next >
C/C++ Source or Header  |  1994-03-08  |  290b  |  15 lines

  1.  
  2. --------------- Listing 10: The function ios::setf(fmtflags) -----------
  3.  
  4. // iossetf1 -- ios::setf(fmtflags)
  5. #include <ios>
  6.  
  7. ios::fmtflags ios::setf(fmtflags nf)
  8.     {    // set format bits
  9.     ios::fmtflags of = _Fmtfl;
  10.     _Fmtfl |= nf & _Fmtmask;
  11.     return (of);
  12.     }
  13.  
  14.  
  15.